from flask import Blueprint
from flask_restful import Api
from app.api.route import route
from flask_cors import CORS
from app.api.apis import api_effect
from flask import make_response
blue_api = Blueprint('api', __name__)
# CORS(blue_api)

rest_api = Api(catch_all_404s=True,)
rest_api.init_app(blue_api)


for item in route:
    rest_api.add_resource(item.api, item.url, endpoint=item.endpoint)
